package ${meta.basePackage}${meta.moduleName};

import lombok.Data;
import lombok.EqualsAndHashCode;
<#list columns as field>
    <#list columns as field2>
        <#if field.type == field2.type>
            <#if field_index==field2_index && !field.type?contains('java.lang')>
import ${field.type};
            <#else>
                <#break >
            </#if>
        </#if>
    </#list>
</#list>

/**
* @author admin
* @date ${meta.cratedDate}
*/

@Data
@EqualsAndHashCode(of = "id")
public class ${name} {
<#list columns as field >


    /**
    * ${field.title!''}
    */
    private ${field.type?split('.')?last} ${field.name}
</#list>
}
